home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97b.txt
/
000075_icon-group-sender _Mon Sep 22 16:20:53 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with SMTP id QAA23601
for <icon-group-addresses@cheltenham.CS.Arizona.EDU>; Mon, 22 Sep 1997 16:20:42 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA08227; Mon, 22 Sep 1997 16:20:42 -0700
Message-Id: <9709222031.AA06900@hpclpax.cup.hp.com>
Subject: Re: if not find a and/or b, do x
Date: Mon, 22 Sep 97 13:34:02 -0700
X-Sender: cary@hpclpax.cup.hp.com
X-Mailer: Claris Emailer 2.0, March 15, 1997
From: Cary Coutant <cary@hpclpax.cup.hp.com>
To: "Stuart Robinson" <Stuart.Robinson@anu.edu.au>,
<icon-group@cs.arizona.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
>if find( "{T" )
> then if not find( "{A" | "{O" )
> then write( line )
The if-clause
not find("{A" | "{O")
succeeds if find("{A" | "{O") fails. The find will succeed if it finds
*either* string in the line, so you're really testing here for the
presence of either string rather than both.
What you want is this:
not find("{A") | not find("{O")
This will succeed (i.e., it has found an invalid line) if either string
is not found.
-cary